package pers.karl.jpa.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.karl.jpa.entity.TestBean;
import pers.karl.jpa.repository.TestBeanRepository;

/**
 * Copyright @ 2019 ds.Keytop.com.cn. All rights reserved.
 *
 * @Package: pers.karl.jpa.service
 * @Description: TestBean Service实现类
 * @Author: caoqiuliang
 * @Date: 2019年10月14日
 * @version: V1.0
 */
@Service
public class TestBeanServiceImpl implements TestBeanService {

    @Autowired
    private TestBeanRepository testBeanRepository;

    @Override
    public TestBean findById(String id) {
        return testBeanRepository.getOne(id);
    }
}
